<!--div id="tablecontent" class="col-md-12"-->						
	<div class="form-group">
		<div class="table-responsive">
			<table class="table table-bordered table-condensed table-striped" style="background:#f9f9f9;">
				<thead>
					<tr>
						<th class="tblhead" style="width:4%;text-align:center;">No</th>
						<th class="tblhead" style="width:12%;text-align:center;">Order No</th>
						<th class="tblhead" style="width:12%;text-align:center;">Item Name</th>
						<th class="tblhead" style="width:12%;text-align:center;">Item Qty</th>                        
						<th class="tblhead" style="width:12%;text-align:center;">Order Date</th>						
						<th class="tblhead" style="width:12%;text-align:center;">Order Status</th>
						<!--th class="tblhead" style="width:12%;text-align:center;">Action</th-->
					</tr>
				</thead>
				<tbody>
					<?php
					if (empty($list_data)) {
						?>
						<tr><td colspan="6" style="text-align:center">No Data Available</td></tr>
						<?php
					} else {
						foreach ($list_data as $row) {
							?>
							<tr>
								<?php
								$room_id 		 	= $row["ROOM_ID"];
								$roomd_description 	= $row["ROOMD_DESCRIPTION"];
								$roomd_qty 			= $row["ROOMD_QTY"];
								$warehouse_id		= $row["WAREHOUSE_ID"];
								$roomd_status 		= $row["ROOMD_STATUS"];
								$roomd_id 			= $row["ROOMD_ID"];
								$room_date			= $row["ROOM_DATE"];
								$item_status 		= (!empty($roomd_status) && $roomd_status == 'Y') ? 'Borrow' : 'Complete';
								?>

								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;"><?php echo $row["RECNUM"]; ?>.</td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $roomd_id; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $roomd_description; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $roomd_qty; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $room_date; ?></td>								
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<?php if($roomd_status=='Y') :?>
										<a class="btn btn-sm btn-warning" href="#" onclick="activation_order('<?php echo $roomd_id ?>', '<?php echo $roomd_status ?>');">
										<!--span class="glyphicon glyphicon-cog"></span--> <?php echo $item_status; ?></a>
									<?php else: ?>
										<a class="btn btn-sm btn-primary" href="#" onclick="activation_order('<?php echo $roomd_id ?>', '<?php echo $roomd_status ?>');">
										<!--span class="glyphicon glyphicon-ok"></span--> <?php echo $item_status; ?></a>
									<?php endif; ?>
								</td>
								<!--td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<a class="btn btn-sm btn-warning" href="#" onclick="edit_data('<?php echo $room_id ?>');">
										<span class="glyphicon glyphicon-edit"></span> Edit</a>
									<a class="btn btn-sm btn-danger" href="#" onclick="delete_data('<?php echo $room_id ?>');">
										<span class="glyphicon glyphicon-delete"></span> Delete</a>
								</td-->
							</tr>
							<?php
						}
					}
					?>
				</tbody>
			</table>
		</div>
	</div>
	<div class="form-group">
		<div id="mypaging">
			<?php
			echo $paging;
			echo $jump_page;
			echo $ipp;
			?>
		</div>								
	</div>
<!--/div-->